<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GreenLife - 绿色健康生活</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.8/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/7.0.0/css/all.min.css">
    <style>
        body, html {
            margin: 0;
            padding: 0;
            overflow-x: hidden;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        #particles-js {
            position: fixed;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #1a512e, #2d8a4d, #3cb371);
            z-index: -1;
        }

        .navbar {
            backdrop-filter: blur(10px);
            background-color: rgba(26, 81, 46, 0.7) !important;
            transition: all 0.3s ease;
        }

        .hero-section {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            position: relative;
        }

        .hero-content h1 {
            font-size: 4rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 1rem;
            background: linear-gradient(to right, #7fff00, #00fa9a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: fadeInDown 1s ease;
        }

        .hero-content p {
            font-size: 1.5rem;
            max-width: 800px;
            margin: 0 auto 2rem;
            animation: fadeInUp 1s ease 0.3s both;
            color: #e0ffe0;
        }

        .btn-custom {
            background: linear-gradient(45deg, #32cd32, #00ff7f);
            border: none;
            padding: 12px 30px;
            border-radius: 30px;
            color: white;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            animation: fadeInUp 1s ease 0.6s both;
        }

        .btn-custom:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .section-padding {
            padding: 100px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
            color: white;
        }

        .section-title h2 {
            font-size: 2.5rem;
            position: relative;
            display: inline-block;
            padding-bottom: 15px;
        }

        .section-title h2:after {
            content: '';
            position: absolute;
            width: 80px;
            height: 3px;
            background: linear-gradient(to right, #7fff00, #00fa9a);
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(127, 255, 212, 0.3);
            height: 100%;
            color: white;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            border-color: rgba(127, 255, 212, 0.6);
        }

        .feature-icon {
            font-size: 3rem;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #7fff00, #00fa9a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stats-section {
            background: rgba(0, 0, 0, 0.3);
            border-top: 1px solid rgba(127, 255, 212, 0.3);
            border-bottom: 1px solid rgba(127, 255, 212, 0.3);
            color: white;
        }

        .stat-item {
            text-align: center;
            padding: 20px;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            background: linear-gradient(to right, #7fff00, #00fa9a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
        }

        .contact-section {
            background: rgba(0, 0, 0, 0.3);
            color: white;
        }

        .form-control {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(127, 255, 212, 0.3);
            color: white;
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .form-control:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: #7fff00;
            box-shadow: 0 0 0 0.25rem rgba(127, 255, 0, 0.25);
            color: white;
        }

        footer {
            background: rgba(0, 0, 0, 0.7);
            padding: 30px 0;
            text-align: center;
            color: rgba(255, 255, 255, 0.7);
            border-top: 1px solid rgba(127, 255, 212, 0.3);
        }

        .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            color: white;
            margin: 0 10px;
            transition: all 0.3s ease;
        }

        .social-icons a:hover {
            background: linear-gradient(45deg, #32cd32, #00ff7f);
            transform: translateY(-5px);
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .pulse-animation {
            animation: pulse 2s infinite;
        }

        @media (max-width: 768px) {
            .hero-content h1 {
                font-size: 2.5rem;
            }
            
            .hero-content p {
                font-size: 1.1rem;
            }
            
            .section-padding {
                padding: 60px 0;
            }
        }
    </style>
</head>
<body>
    <!-- 粒子背景容器 -->
    <div id="particles-js"></div>

    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-dark fixed-top">
        <div class="container">
            <a class="navbar-brand" href="#">
                <h3 class="mb-0">Green<span style="color: #7fff00;">Life</span></h3>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link active" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#features">健康理念</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#stats">健康数据</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#contact">联系我们</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- 英雄区域 -->
    <section class="hero-section">
        <div class="container">
            <div class="hero-content">
                <h1>绿色健康 生机勃勃</h1>
                <p>倡导自然生活方式，拥抱绿色健康理念。让我们一起追求身心平衡，享受生命活力，共创美好未来！</p>
                <button class="btn btn-custom pulse-animation">开启健康之旅</button>
            </div>
        </div>
    </section>

    <!-- 特性区域 -->
    <section class="section-padding" id="features">
        <div class="container">
            <div class="section-title">
                <h2>健康生活理念</h2>
            </div>
            <div class="row g-4">
                <div class="col-md-4">
                    <div class="feature-card">
                        <div class="feature-icon">
                            <i class="fas fa-seedling"></i>
                        </div>
                        <h3 style="color: white;">自然饮食</h3>
                        <p style="color: rgba(255, 255, 255, 0.8);">推崇有机食品和天然食材，远离加工食品，让身体获得最纯净的营养。</p>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="feature-card">
                        <div class="feature-icon">
                            <i class="fas fa-walking"></i>
                        </div>
                        <h3 style="color: white;">运动健身</h3>
                        <p style="color: rgba(255, 255, 255, 0.8);">坚持规律锻炼，增强体质，释放压力，让身体和心灵都充满活力。</p>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="feature-card">
                        <div class="feature-icon">
                            <i class="fas fa-spa"></i>
                        </div>
                        <h3 style="color: white;">心灵平衡</h3>
                        <p style="color: rgba(255, 255, 255, 0.8);">注重心理健康，通过冥想、瑜伽等方式调节情绪，达到内心宁静。</p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 统计数据区域 -->
    <section class="stats-section section-padding" id="stats">
        <div class="container">
            <div class="row">
                <div class="col-md-3 col-6">
                    <div class="stat-item">
                        <div class="stat-number" data-count="10000">0</div>
                        <h4 style="color: rgba(255, 255, 255, 0.9);">健康会员</h4>
                    </div>
                </div>
                <div class="col-md-3 col-6">
                    <div class="stat-item">
                        <div class="stat-number" data-count="500">0</div>
                        <h4 style="color: rgba(255, 255, 255, 0.9);">专业教练</h4>
                    </div>
                </div>
                <div class="col-md-3 col-6">
                    <div class="stat-item">
                        <div class="stat-number" data-count="100">0</div>
                        <h4 style="color: rgba(255, 255, 255, 0.9);">合作机构</h4>
                    </div>
                </div>
                <div class="col-md-3 col-6">
                    <div class="stat-item">
                        <div class="stat-number" data-count="98">0</div>
                        <h4 style="color: rgba(255, 255, 255, 0.9);">满意度%</h4>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 联系我们区域 -->
    <section class="section-padding contact-section" id="contact">
        <div class="container">
            <div class="section-title">
                <h2>加入我们</h2>
            </div>
            <div class="row">
                <div class="col-lg-6">
                    <form>
                        <div class="mb-3">
                            <input type="text" class="form-control" placeholder="您的姓名">
                        </div>
                        <div class="mb-3">
                            <input type="email" class="form-control" placeholder="电子邮箱">
                        </div>
                        <div class="mb-3">
                            <textarea class="form-control" rows="5" placeholder="您的健康目标"></textarea>
                        </div>
                        <button type="submit" class="btn btn-custom w-100">提交信息</button>
                    </form>
                </div>
                <div class="col-lg-6">
                    <div class="ps-lg-5 mt-4 mt-lg-0">
                        <h3 style="color: white;">绿色生活健康中心</h3>
                        <p class="mt-4" style="color: rgba(255, 255, 255, 0.8);">我们致力于推广绿色健康的生活方式，提供专业的健康指导服务，帮助每个人实现身心健康的目标。</p>
                        <div class="mt-4">
                            <p style="color: rgba(255, 255, 255, 0.9);"><i class="fas fa-map-marker-alt me-2"></i> 绿色健康大道123号</p>
                            <p style="color: rgba(255, 255, 255, 0.9);"><i class="fas fa-phone me-2"></i> +86 400 123 4567</p>
                            <p style="color: rgba(255, 255, 255, 0.9);"><i class="fas fa-envelope me-2"></i> info@greenlife.com</p>
                        </div>
                        <div class="social-icons mt-4">
                            <a href="#"><i class="fab fa-weixin"></i></a>
                            <a href="#"><i class="fab fa-weibo"></i></a>
                            <a href="#"><i class="fab fa-zhihu"></i></a>
                            <a href="#"><i class="fab fa-xiaohongshu"></i></a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <p>&copy; 2023 GreenLife. 让我们一起拥抱绿色健康生活。</p>
                </div>
            </div>
        </div>
    </footer>

    <!-- Bootstrap JS -->
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.8/js/bootstrap.bundle.min.js"></script>
    <!-- Particles.js -->
    <script src="https://cdn.bootcdn.net/ajax/libs/particles.js/2.0.0/particles.min.js"></script>
    <script>
        // 初始化粒子效果
        particlesJS("particles-js", {
            particles: {
                number: { value: 100, density: { enable: true, value_area: 800 } },
                color: { value: "#7fff00" },
                shape: { 
                    type: "circle",
                    stroke: { width: 1, color: "#00ff7f" }
                },
                opacity: { value: 0.6, random: true },
                size: { value: 4, random: true },
                line_linked: {
                    enable: true,
                    distance: 120,
                    color: "#7fff00",
                    opacity: 0.3,
                    width: 1
                },
                move: {
                    enable: true,
                    speed: 1.5,
                    direction: "none",
                    random: true,
                    straight: false,
                    out_mode: "out",
                    bounce: false
                }
            },
            interactivity: {
                detect_on: "canvas",
                events: {
                    onhover: { enable: true, mode: "repulse" },
                    onclick: { enable: true, mode: "push" },
                    resize: true
                },
                modes: {
                    repulse: { distance: 100, duration: 0.4 },
                    push: { particles_nb: 4 }
                }
            },
            retina_detect: true
        });

        // 数字动画效果
        function animateValue(obj, start, end, duration) {
            let startTimestamp = null;
            const step = (timestamp) => {
                if (!startTimestamp) startTimestamp = timestamp;
                const progress = Math.min((timestamp - startTimestamp) / duration, 1);
                obj.innerHTML = Math.floor(progress * (end - start) + start);
                if (progress < 1) {
                    window.requestAnimationFrame(step);
                }
            };
            window.requestAnimationFrame(step);
        }

        // 滚动到视图时触发动画
        const observerOptions = {
            root: null,
            rootMargin: "0px",
            threshold: 0.5
        };

        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    const countElements = entry.target.querySelectorAll('.stat-number');
                    countElements.forEach(el => {
                        const count = parseInt(el.getAttribute('data-count'));
                        animateValue(el, 0, count, 2000);
                    });
                    observer.unobserve(entry.target);
                }
            });
        }, observerOptions);

        // 监听统计区域
        const statsSection = document.getElementById('stats');
        if (statsSection) {
            observer.observe(statsSection);
        }

        // 导航栏滚动效果
        window.addEventListener('scroll', function() {
            const navbar = document.querySelector('.navbar');
            if (window.scrollY > 50) {
                navbar.style.padding = '10px 0';
                navbar.style.boxShadow = '0 5px 20px rgba(0, 0, 0, 0.1)';
            } else {
                navbar.style.padding = '20px 0';
                navbar.style.boxShadow = 'none';
            }
        });

        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    window.scrollTo({
                        top: target.offsetTop - 70,
                        behavior: 'smooth'
                    });
                }
            });
        });
    </script>
</body>
</html>